debug flag added to run_server subcommand
better api pattern layout. very basic cms query support