Added case for using a Proc or Lambda for class.

Added the ability to pass a proc or lambda to the class option for authorize resource.