Implement “soft” dependencies

We don’t need eventmachine gems if we only use Rack middleware and
ActiveRecord check.

Not the nicest thing, but solves the problem :)

@spajus