Bug/motion not deleted with discussion

This bug was causing an application error as motions were not being destroyed when their parent discussion was destroyed.

Changed delay to handle_asynchronously
Put logic around update_discussion_last_comment_at
Migration to remove orphaned motions and their votes
Replace custom method update_counter_cache with activerecord counter_cache