Logout now responds with a JSON formatted string
Removed some redundant test procedures
Removed redundant methods and added method to set authentication state
Added showInfo wrapper
Added handling for logout action.