Continuing work in progress on rewrite focused on support for sockets and auth. Rework on built in resource.