Updated market + records controllers to changed dialogs.
Need to serialize ObjectIds correctly, since now they're being used to directly retrieve information via the 'get' methods of the controllers.
DatabaseConversion fixed: Have to convert database types to model types when deserializing.
Started rewriting JS code for recent controller changes. Circles almost finished (ordering + updating visible records when deleting a circle to be done).