Added port.h and some refactoring.
Apple fixes.
Removed CURL from the list.
s/is/if/
s/COUNT/BRICKS_PORT_COUNT/
Naming: posix.h -> server.h for HTTP.
Merge pull request #16 from dkorolev/master

Created port.h, plus some code removal and refactoring.