Added login/logout/register navigation to application layout, implemented session creation and destruction.