First pass of implementing per query namespace lookup for stub resolver....

... Also a getdns local namespace lookup is now used for all sync calls.

Still needs work on memory handling and a test adding. 
Should consider re-writing to alter the namespace/netreq loop order.