Rack REST server added, refactorings in terminal-proxy