Refactor core/db.
Refactor core/db.
Refactor query package.
Refactor server package.
Minor refactor fixes.
Merge pull request #193 from skydb/refactor

Refactor