Refactor server and factors into db package.
Merge branch 'unstable' of https://github.com/skydb/sky into db-refactor
Merge pull request #156 from skydb/db-refactor

Refactor server and factors into db package.