Make code more generic

* Makefile updated, including test-client and test-server
* read_stdin() moved to util.h
* Server loop in test-server
* using namespace raya in test-client and test-server