Replace dependencies

so that they make more sense. active_record/railtie isn't really used
but rails is required for Rails.application