changed the AbstractRest controller to take a Pimple instance for a bit more flexability going forward