added more best practices to code templates and generated system actions, closes #829 and closes #830
send http 401 on "forbidden" pages, refs #829 and #830
send http 503 on "unavailable" pages, refs #829 and #830
Fixes #840: 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 #829
ported eac8c9be3eead2bbd68674feeba72520513177ae to 51b1e2bd65612d7b685cf690d7c9196052e5183d (from 0.11)
merge 482e55deb148ad395281514f75706ba5117e26da to a58d7b35db02d6728f7a0e3bf634cee9736466e4 (from 0.11)