Merge pull request #985 from inthause/documents

Allow parametrize block template in back office
Fix backoffice documents collection sorting
Some fixes