Refactor custom path handling to avoid too many if conditions
Merge branch 'master' of https://github.com/prasannavl/ServiceStack