Factoring out some middleware functions for the Express server. Preparing for a refactor of the Express methods to take advantage of free user and invoice references. Setting up Authorization header for Restangular to make all of this possible.