Minor fixes (see list)

* Catalogue currency codes were coming back unrecognized because
"currency" instead of "code" was used.
* Added simple uncaught exception handler (until Domains are
implemented)
* in reports "active=1" was used instead of "ACTIVE=1"
* stamp find now uses DISTINCT(s.ID) and only LEFT JOIN instead of LEFT
OUTER JOIN on the Ownership