refactoring some app metadata utils into a seperate util class
fixing unversioned bundle paths and allowing bundle path tokens in XML and HTML bundles - fixes #753