Push/Pop the PHP session in order to keep OC and DW separated.
Change primary source to fork.
Try to preserve error reporting after including owncloud stuff.