Adding masterserver initial implementation with tests