Feature/refactor

Preparing code for further development of PageNavigator, View and HashHistory after discussion with Samuel.