Fix ajax.js content type. Add update race. Refactor Race Manager.