Updated ticket model to save custom fields to their own table.
Updated view ticket and custom field form to work with tweaked custom fields API.