Big refactor - monolog, controllers, json api

* Started logging errors etc to syslog using monolog
    * Refactored controllers out of web.php and added tests
    * Made random words be returned on mass via a single api call
    * Ensured that the same random word isn't displayed twice in a row