Fixed some syntax errors in friendship handling. Also added fields and 

...checks to returned jsons to allow more descriptive responses to the user from the app.

With @EddieSpencer and @Safaris