code cleanup; added loginrequired middleware on multiple endpoints
code cleanup; added loginrequired middleware on multiple endpoints

nagyistoce/cloudbucket,sahat/cloudbucket,nagyistoce/cloudbucket,sahat/cloudbucket,nagyistoce/cloudbucket