Extracting Common Code

This PR extracts common code from various Athena projects, and ports them to coffeescript.