Photo upload and gallery initial commit, Added logout functionality