more tests, spec integration bugfixing

- added xt.database tests
- renamed: server-cli.js -> cli.js
- created index.js