Convert to using ejs-locals for layouts
Change to using promisify instead of async for better code and easy error handling