Fix the servlet response to fit the RepoElement structure

-Changed the Maps from <String,String> to <String,Object>:
This should fix the issues converting the servlet response to a RepoElement object.
Later on we might change the Map<String,Object> to RepoElement objects.
-Changed the way we parse the SearchResponse when sending it to the client. It was being parsed as a byte stream, now it's a simple String.