Added login and bundle scripts.
Added logout and some security things.