Merge pull request #3 from andirotter/master

Update
testing the ajax call for scan.php, writing test output into database
code style
code style
code style
check for allowed file extensions, update metadump.xml with extracted text, code style
git config testing
added config option for ocr_allowed_extensions array
added check for min_desity (dpi)
testing first ocr processing, added check for max_density
Merge origin/master

Conflicts:
	hooks/edit.php
	pages/scan.php
Merge origin/master

Conflicts:
	hooks/edit.php
	pages/scan.php
added language selector for single resorce scan