Introduced get_updates.php script

This script fetches the updates if the user is authenticated.
It doesn't start the authentication process again, instead it uses
the existing session.
Bugfix: legacy file session extraction was broken