Learning HapiJS by creating a simple API