start of a restify based API
adding postgres and the start of handlers (but very unfinished)