Improves the Template getter.
Changes URL mapper to usage of regex and URL slicer.
Cleans Up.