fix ensureLoggedIn
minor
refactor auth, add IAuthSubject
whew, remove AuthSubject, AuthRule from framework
fix codegen
minor
add ticket.name
codegen: user-defined template files supported