Some more variables that need not be instance variables.
Indentation.
'target' doesn't have to be an instance variable.
Adding default_deployment_port.
Fixing the bug, where the first request was redirected to the root/home page, when the cookie was not found.
Handling the case, when the cookie doesn't match any of the labels.
Making the setCookie().
Refactoring the setCookie().
Removing an unreachable line.