Update socket_server

use gethostbyname if none is provide
update gitignore

delete swp file
update draft functionality

Allow the user to define drafts, that will not be compiled unless the
user is in `dev` mode.
ignore files by regex