Big refactoring to have heartbeat activity as a complete entity. Also fixed a bug: #1284376 by Sylense: Fixed Overriding activitycomments plugin breaks comments.