Feature/centos support

There's a bunch of stuff in here you should probably review before adding, but most of it takes place in new files so I hope it should be a straightforward pull.

Make sure it builds in your environment before pulling. =)

Apologies for a couple of commits with bad descriptions: was getting a Samba-mount issue in Mac OS X Mavericks which made it impossible to write proper commit messages for some reason. Have since resolved it by remounting my work drive via CIFS, but can't now edit those commits.