utility function for url parsing
pass context object to before function
updated docs
Merge branch 'floj-context-in-before-function'

* floj-context-in-before-function:
  updated docs
  pass context object to before function
  utility function for url parsing
add demo rule for before function env
contribution by floj
prepare for v1.3.0