[WIP]prototyping: refactor directory structure

I tried some refactoring.
- change directory structure like [etcd](https://github.com/coreos/etcd)
- put some ci scripts -- `./test.sh`, `./build`