DRY and clean up the coffeescript code that handles the "subscribe feed" event.
Moved some shared code to global coffeescript functions.