WIP Fix broken unittests + add more

Refs #60 #112 
I have changed this to use Pimple from 3rdparty since this is a custom autoloader to run the unit test without ownCloud (and the DB). Like in the news app.