added before/after_save before_create events
added checkUnique to check for index items
added checkRequired function for array of required values
added before_update