Consolidates record and records controllers, updates phpunit tests.