Refactoring server and adding perspective-server binary