Changed mapping for ajax controller to deal with refdata cats containing dots. fixes #691, #690, #689, #688