profile view loading
userData renamed to userInit and moved outside of router
user: UserData function moved outside router
refactoring for easier testing - part1
refactoring for easier testing - part2