added tests, switch to psr4
made compatible with imagine 0.6+
add test
add travis config
send code coverage to scrutinizer