Added URI prefix customization to TM and phylogentic implementations. Not complete for TM yet -- only applied on top-level.