Sp4.sc1.delete resources when deleting user

Pull request that makes sure that resources(and the resource's streams) belonging to a certain user will also be deleted if the user is deleted. The PUT/update function in resource was also fixed so that is now working. The tests were changed and updated accordingly.