Properly register sharing hooks and proxies
Properly register sharing hooks and proxies

This will fix failing tests when shares weren't cleant up on delete due
to missing hooks.

Added login for user1 in setUp().

owncloud/core,nextcloud/server,endsguy/server,sharidas/core,sharidas/core,IljaN/core,endsguy/server,endsguy/server,pixelipo/server,pmattern/server,bluelml/core,cernbox/core,endsguy/server,sharidas/core,pollopolea/core,jbicha/server,owncloud/core,bluelml/core,andreas-p/nextcloud-server,bluelml/core,owncloud/core,sharidas/core,xx621998xx/server,whitekiba/server,andreas-p/nextcloud-server,lrytz/core,pmattern/server,andreas-p/nextcloud-server,Ardinis/server,michaelletzgus/nextcloud-server,Ardinis/server,nextcloud/server,Ardinis/server,cernbox/core,whitekiba/server,lrytz/core,cernbox/core,andreas-p/nextcloud-server,owncloud/core,xx621998xx/server,xx621998xx/server,pollopolea/core,whitekiba/server,cernbox/core,lrytz/core,nextcloud/server,michaelletzgus/nextcloud-server,pixelipo/server,andreas-p/nextcloud-server,pixelipo/server,jbicha/server,pmattern/server,nextcloud/server,cernbox/core,bluelml/core,IljaN/core,whitekiba/server,IljaN/core,jbicha/server,pollopolea/core,pmattern/server,jbicha/server,bluelml/core,owncloud/core,sharidas/core,lrytz/core,Ardinis/server,pixelipo/server,lrytz/core,pollopolea/core,xx621998xx/server,jbicha/server,endsguy/server,whitekiba/server,IljaN/core,xx621998xx/server,Ardinis/server,michaelletzgus/nextcloud-server,pollopolea/core,pixelipo/server,phil-davis/core,michaelletzgus/nextcloud-server,IljaN/core,pmattern/server