Ignore .DS_Store
Fix some warnings
Made clients shutdown when their TCP connection closes

Closes #26
Merge branch 'master' into dev