Merge pull request #116 from entronic/master

boss_db:migrate support in Mnesia
ets cache is default
Merge pull request #119 from cuongth/master

Support ETS cache with TTL
Build insert and update with equery.

Thanks to tonghu008@gmail
add terminate/1 for adapters
Merge pull request #122 from cuongth/master

Add terminate/1 for adapters
Fix up terminate/1 calls
Don't terminate undefined connections
Don't try to save undefined values

Postgresql adapter fails if we try to save undefined as date.

Just skip undefined fields and don't save them.
Merge pull request #126 from maxlapshin/patch-1

Don't try to save undefined values
Pack undefined datetimes
Add a rebar plugin to compile models
Merge pull request #127 from rtsisyk/rebar-plugin

Add a rebar plugin to compile models
Fixed sorting by non-text fields in Tokyo Tyrant adapter.