Update to PSR1+2 and introduce CI tests.