Refactoring shares_controller

* Add test for shares_controller.
* Move the share create action to activity_object.