Adding support for user login

JSON implementation based coming soon.
The PHP scripts that support it are already on the server, I’m not
uploading them to the repository because they contain sensible
information.