Conversion to PHP 5.3+ namespaced library + composer

Modified the library to respect namespaces.
Updated tests to reflect the namespacing.
Included composer packaging to work with the http://getcomposer.org/ dependency manager.