Add tests for permission leaking
Implement permission leaking
Add tests for middleware expected behaviour with parenting
Implement parenting into the middleware generator function
Update version
Add tests for expected parenting query generation
Add implementation for parenting query generation
Refactor parent query generation and its tests to fix some bugs
Merge branch 'master' into livescript
Refactor a little