Composerfying

This is a GREAT library! Thank you! I've added a base composer config and moved classes into their own namespace, also setup composer requirements for PHP unit for testing. Would love to get this put on packagist for easy consumption, will be adding some tests and sending another PR in the near future.