Base implementation of server framework and socket handler