Fix rails engine and asset pipeline for Rails 4.0

The Rails version check was checking the minor version based on the major version only being larger than 2. Fix it to only use railtie if Rails is 3.0.

The Rails engine was not checking properly for the asset pipeline. By default the asset pipeline is enabled. It is only when Rails.configuration.assets.enabled is set to false that the asset pipeline is disabled.