Cleanup old API code

Drop the records code in favor of the new API code. Also remove tests
and documentation related to the old code.
Merge pull request #1506 from elyezer/cleanup-old-api-code

Cleanup old API code