Feature/resocket

Moved script into body
simplified js
close socket upon completion

Works, but the client does not know whether it was successful.  Do we want to wait for success or something @kmjungersen?
The only thing I'd say about this is that we're going to want to wait for the response at the least.  We have to see if the username is taken or not, which is important.  I'll merge the request and am going to add a little something else, so check the pull request I make kind sir!