Fix check in oneday.js and performance improvements

In looking over the code in preprocessing.js I noticed that oneday.js's check for no data wasn't actually doing what we hoped it would.  a is an object and the length of an object is undefined by default, so all it was doing was checking the truthyness of a.

As I was looking over the code, I also noticed that preprocessing.js was doing a lot of redundant iterations over the array of data as well as a lot of superfluous equality checks.  So I re-wrote it to try to expose a slightly different style of programming that I know to be faster, believe to be more succinct, and also believe to be easier to maintain.  There are still a lot of copies of arrays that are happening, but one thing at a time.
Remove test that wants TYPES_TO_INCLUDE to be public.
switch back to lodash methods, jshint fix and comment
Merge branch 'master' into cheddar/code-alternation
Merge pull request #79 from tidepool-org/cheddar/code-alternation

Fix check in oneday.js and performance improvements