More refactoring of how express routes are constructed for the REST API.  Added a unit test that was missing for the history API to ensure that parameters are working correctly