Tested Dokument model; Removed M2Crypto dependency; Some optimizations

-Site no longer goes through /scanpage2/ to open scanner app
-Scanner app now tests for logged in user using user ids
-Dokument model is now working with minimal modifications