Changed placement of "Reset Device" button for consistent presentation
on phone, tablet and browser
Added doRecordAjax and doRecordAjaxSuccess to support on-the-fly
synchronisation from server to device.