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
Used by tests. Ignore my comment.