modularizing server and introduce cli example.
readme updates.
use datastore directly from cli.