Move to server
Add rcflags parsing
Add tests