Rebuild reference adapter and referenceprefix behavior tests.
Reworked ReferencePrefixAdapter, use now seperate counter for dossiers.
Added upgradestep: which cleanup the mixed-up old mappings.
Merge pull request #89 from 4teamwork/pg_dossier_reference_prefix

Dossiers own reference prefix adapter.