Initial experiments with admin permissions.

The basic framework for granting admin specific permissions for only
certain APIs is now in place, but permissions are only being checked for
editing API backends right now.
More admin permissions works.

Consolidate the user and api datatables ajax requests to use the /api/v1
requests. Updates datatables to use the new 1.10 non-hungarian notation
syntax (yay!). More access control with Pundit.
Cleanup unused code. Start to add tests for the admin permissions.
Work in progress: a new publishing process.

The new publishing process will take into account admin permissions, so
admins can publish just the backends they have permissions to.

There's now a new preview screen for the publishing process, but the
actual publishing still needs to be implemented.

Also add jshint to begin to lint the javascript files in this project.
Fix jshint warnings.
Standardize on single quotes in javascript code to appease jshint.
Make jshint part of default rake task.
Adjustment for travis ci tests.
Fix rubocop offenses.
Initial implementation of new API publishing.
Add tests for group access permissions.
Begin adding tests around the config publishing.

Right now this is just focused on the review portion of the publish
workflow (and not the actual publish action itself).

Also includes some very initial browser integration tests to test the
front-end side of this (but need to figure out a better way to handle
logins).
Fix unused assignments per rubocop.
Try to sort out database seeding on travis.
Improve capybara login process. Add browser tests around publishing.
Upgrade pnotify to 2.0.1
Re-arrange integration spec.
Add PNotify as a global for jshint (due to pnotify 2.0 upgrade).
Add test for config publishing review refresh behavior.
Add tests for the config publishing API.

Also simplify api sorting for the config. Only sort by the sort_order
column, rather than also falling back to created_at (since sort_order
should always be present, the fallback was just there for the
earlier transition).