Refactoring pay routes. Can now pass in config if using as module

 * Cleaned up code in pay.js
 * If using basicpay as module you can do require('basicpay')(yourConfig)