export the hpms data handler

so I can make a handler in the server that loops over whatever
without having to code it in this library

export the handler
modified:   index.js

export the handler
modified:   lib/routes.js

test; passing
modified:   test/test_route.js