Removing network manager / refactoring metadata manager to use RestRequest and RestClient

Also new rest wrappers for search scope and order / search result layout
Tests for new wrappers
It's also used by MetadataManaager and SyncManager.