Restructure code for modularity

This is an initial commit to allow for more modularity in the code.  Next commit up will add another abstraction layer for storage into sandcastle.

This commit also removes all of the event-stream stuff and replaces it with just plain javascript.  I find it easier to read and understand what is going on.
Make the code actually compile and run.
Restructure code for modularity

This is an initial commit to allow for more modularity in the code.  Next commit up will add another abstraction layer for storage into sandcastle.

This commit also removes all of the event-stream stuff and replaces it with just plain javascript.  I find it easier to read and understand what is going on.
Factor out sandcastle into a module

Also add a local storage module.  I have verified locally that this can successfully load and process files.  I suspect that the sandcastle integration might be broken, but that should be fixable.
Make work with sandcastle as well
Merge pull request #3 from tidepool-org/cheddar/ingest-refactor

Refactor ingestion