implemented search function respecting friendship & 'protected' status
added test for application search function
changed Application API for getting user details