Implament authentication of app, database

The app now validates urls and authenticates the user
before uploading or allowing the user to add a url to their
list.

Added interaction with the database to the upload.php
script