Refactored and cleaned up Session and Sharing objects.