Blog using hapi with Node.js - api layer