normalize slashes to dots, remove starting and ending slashes, and provide default view name.
switch major dependencies to provided scope.