Moved Rack middleware to it's own file & added model module
Added some more sample stuff & faking some rails behaviour
Renamed event to resource_sync