Re-organize file layout and add Makefile

* remove un-needed cmd directory
* move main noids file into server directory
* add makefile, and adjust noids.spec to use it