Split UI endpoints into multiple resources.

+ Corrected the allocator object and injecting the client.
Adding License headers.

Conflicts:
	exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/QueryResources.java