Software Defined Networking for Quality-aware Management of Multi-hop Spontaneous Networks