get tests passing, import cast to json
include table-ref middlware, add docs to comments for cast tot json
move middleware tests to a single middleware test file, running tests in order works
fix npm test command
Merge pull request #28 from jrf0110/28-middleware

Include common middleware in repo