WIP records: REST API addition

Ok, perhaps it doesn't make sense to change. I was mainly thinking about ``record_exists``. Perhaps Esteban can add something to the Records model, but this is a minor thing. Just worried about cutting ties to legacy parts ;-)