added more best practices to code templates and generated system actions, closes #910 and closes #911
send http 401 on "forbidden" pages, refs #910 and #911
send http 503 on "unavailable" pages, refs #910 and #911
Fixes #921: logging.xml and output_types.xml handlers have variable name escaping problems
renamed templates/exception to templates/exceptions for new projects and fixed an mkdir typo for that directory in build.xml, refs #910
ported 24159b80cda36fe864be2c363cd9ac9a2564e612...a90d1a362e458edf64bcebb5702de6a65a1b0f72 (from 0.11)
merge bd20c845eec12b52994c230148bb78e6e58a3c39...c0bee72796cd89fa903d63144f5bcd314aa6e6b4 (from 0.11)