Losts of refactoring to rely more heavily on the RESTful API for data access

As part of the migration to the Bootstrap framework, many new RESTful
API's were introduced to retrieve data from the database via AJAX. This
first change set will introduce the new behavior, and subsequent changes
will remove the now obsolete behavior.
change to include competition string to the app header

In order to catch whether a tablet isn't properly configured for a
competition, the title bar has been changed to include the competition
that the tablet has been configured for.