Only cache attributes for ActiveRecord objects

Add versioning to root namespace.