Licensing

Added the GPLv3 license to some files in addition to fixing some
comments at the beginning of the files.
Small change
Formatting.

Many stylistic changes, mostly formatting code more closely to the
coding style.
Minor screwup fixed

I sure wish it was easier to compile on Windows.
Merge pull request #103 from SilentSand/master

Licensing
Added basic Local/LAN discovery.
I don't know how this happened.
Remove unnecessary braces
Merge pull request #105 from nfkd/patch-1

Remove unnecessary braces
took out several strlen() calls out of the loop; replaced int's with size_t where needed
Fixed the multiple friends request recieved at the same time problem.
Fix braces and a comment
Fix some indenting
Merge pull request #106 from sometwo/patch-3

Fix braces and a comment
Merge pull request #107 from sometwo/patch-4

Fix some indenting
styling

haven't fixed switch statements because I'm lazy
Fix braces
Merge pull request #108 from sometwo/patch-5

styling
Merge pull request #109 from nfkd/patch-1

Fix braces
Fix braces and some white-spaces