Added PHPUnit and composer

Implemented composer and started experimenting with tests for the GVM
class. Lots of cruft in here still