Extract ORM specifics

rework of PR #454

ORM specifics except Active Record has extracted to [doorkeeper_bundle](https://github.com/jasl/doorkeeper_bundle) (not push to rubygems yet)
I don't have an idea actually.

It seems ORM-specific gems can't run doorkeeper's test cases, so I copied some model's test cases to the gem