Add makefile and update gitignore

Adds a makefile for common, client and server and one "super" makefile
that will can build or clean all at once.
Also updates gitignore so the new build/ and bin/ directories are
ignored, aswel as OS X .DS_Store files.