zerovm/zwift-ui — pull request #8 by willkelly (2014-02-25 00:06:56+00:00)
Title: Cleanup working area and refactor swift.js

Hey Leon,

This is the refactor I'd emailed you about merged with your latest master changes.

I apologize for the messy pull request -- I should have broken this into more than one, but it is a little awkward to do now.

This pull request includes the following changes:

* Delete deprecated ui code from the workspace (I have created separate branches in the zerovm/zwift-ui repo so that history will be easily available for consultative purposes)

* Rename all js/ files to lower case to ensure case consistency.

* Refactor swift.js to include a request wrapper that will add appropriate authentication headers to XHR requests.

* Refactor swift.js to include a handler that generally covers the cases you wish to cover in swift request (auth failure, 404, successful, unsuccessful)

* Merge on top of latest changes.