Custom records and general fixes

Fully functional custom records, new Commands and some fixes. Still in
1.4.6.

Very close to the 1.0 release (planned for 1.4.7).