Changeable output & temp directory and some other template system-related stuff. Other code enhancements.