extract out helper functions to a helper file

Okay I moved the helper functions from index js to a helper file, I don't if this file should be named more appropriately to something indexHelpers.js but here's my first attempt.
Also I am not sure if we want export helper functions by reference, like i am currently doing, or just inline it with the export sugar like:
```
export.helperFunction = function (arg) {}
```
or even
```
helpers = { helperFunction: function (arg){} }
module.exports = helpers
```

@mikeal what are you're thoughts?