Added support for non-annotation security modes, and added dynamic methods to resources.