Add squash functions
Merge pull request #1040 from rwcarlsen/squash

Add squash functions - and more!
make tests use in-memory sqlite db to run faster
Merge pull request #1046 from rwcarlsen/in-mem

make tests use in-memory sqlite db to run faster
nightly build