bugfixing severall issues with HTTPS
bugfixing severall issues with HTTPS

fixes issue #34, issue #35 issue #36 and issue #38. Preparing for issue
#33

mhtranbn/owncloud,mhtranbn/owncloud,hypery2k/owncloud,hypery2k/owncloud,mhtranbn/owncloud,lahmizzar/owncloud,mhtranbn/owncloud,Fmstrat/owncloud,lahmizzar/owncloud,lahmizzar/owncloud,amirshaikh49/owncloud,hypery2k/owncloud,Fmstrat/owncloud,Fmstrat/owncloud,lahmizzar/owncloud,mhtranbn/owncloud,Fmstrat/owncloud,lahmizzar/owncloud,amirshaikh49/owncloud,Fmstrat/owncloud,hypery2k/owncloud,hypery2k/owncloud,Fmstrat/owncloud,amirshaikh49/owncloud,mhtranbn/owncloud,lahmizzar/owncloud,amirshaikh49/owncloud,amirshaikh49/owncloud,amirshaikh49/owncloud,hypery2k/owncloud