An example API using hapi.js for keeping a list of tasks