refactor depedency injector
clean up resource.rb
this commit finally implements the entry adapter and integrates and glues all existing models togethter