Added Global object for controllers; added global initialisation; basic auth working