Completed #65.  Changes to enable path based authorisation
Fixed broken test.  Closes #159
Merge branch 'develop'