Adds AJAX so that messages can be created from the root page. Adds ability to delete messages from the database.