Added Server

Added server.
Also made some changes to utils; added hash function.