Reworked URL processing to be more flexible. Also renamed 'defaultAction' to 'index'
Reworked Session to include userId of logged-in user