Moved path construction into specialized class
Moved path builder to new file
precompile regular expressions to be slightly faster