Changes made by Kelvin Kosbab (kelvin@kosbab.com). Add user object to ajax requests. Various bug fixes.