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)
seems `private :expired_time` is no need

```ruby
private
def expired_time; end;
```
is better