Backwards compatibility for ApplicationRecord.

If ApplicationRecord is not defined, then we should fall back to
ActiveRecord::Base without anything breaking.
Adding application record tests.

Tests to make sure that all of the functionality of ApplicationRecord
exists, specifically namespacing and inheritence of configurations.