Minor tweaks to the upstream project.

Ignore some new metafiles in phpstorm 6.0
Set the smarty "mail" command to require the Core mail javascript.
Added support for Model::ATT_TYPE_UUID_FK and Model::ATT_TYPE_ID_FK.
These are currently just helper constants so I don't have to remember how many characters a UUID is.
New method: FilterForm::getTotalCount; just returns the total if it's set.
Display view errors when in development mode along with their backtrace.
Minor fix in the {a confirm} usage; properly escaping single and double quotes now.