simple ouath2 implementation for use with restify