moved global config out of controller
removed dependency from grape api