migrate OC::session to OC::server->getSession
Merge pull request #718 from owncloud/fix-session

migrate OC::session to OC::server->getSession