Add martini support for REST API