Updates for Sails v0.10 Support

I rebased @jswartwood's previous pull request (#8) on top of the current master branch and cleaned up a couple things.

The documentation for Sails v0.10.0 is very sparse, so I'm not 100% sure that everything is working as it should, but this got our app up and running again after upgrading to v0.10.0.

Still lots of failing tests :(