updated access rule handling
updated docs
code cleanup
Merge pull request #67 from yogthos/master

new access rule features
improved rule handling
Merge pull request #68 from yogthos/master

improved access rule handling
added on-fail function as alternative to redirect
Merge pull request #69 from yogthos/master

added on-fail option for redirects
updated docs
Merge pull request #70 from yogthos/master

updated docs
updated docs
Merge from upstream