Feature-rich REST controller for use with ExtJS