Use sockets instead of http to change metapoint values.

- Refactor some server code.