Added phpspec tests and composer dependencies

 * Added some phpspec tests
 * Added some composer dependencies
 * Added `MIT` license - change this to another if you want to use something different