switched routing to use martini groups and cors middleware