Session manager returns json

Return a json from the session manager containing all information in a
structured way
Refactor code

Refactor the sign-in code - clean up where needed
Use php to create copyright message

Use php to create copyright message
Add try-catch elements in sign-in scripts

Add try-catch elements in sign-in script. This is so that we don't error
out when calling these scripts from different pages.
Gallery log-in sensitive

Make the gallery log-in sensitive as well
Store user-information in session

Store the user's information in the session variable.