Added possibility to use custom templates and static files in user data path directory.