Allow the use of a Proc to decide if the middleware is enabled
Merge pull request #16 from camilo/use_proc_when_enabling

Allow the use of a Proc to decide if the middleware is enabled