Added ProxyObject subclass for Rails 4.
Modified rails31 to include rails4.