Redirect to original target page after logging in

Often when one clicks "View task on Kanboard" from the email notification, one gets redirected to the login page because the session has expired. But upon logging in one always ends up at the default board. This patch makes it so that information on the original target page is preserved so that Kanboard redirects to the original target page after successful login.