Change index reference to lib/api.js, rename mailer.js to api.js