searching for users by username and api caller small refactoring

 - searching for users by username 
 - api caller refactored building request params (using `Hash`es rather than `Strings`)