DataPacks: preparing server creation in lib
removing duplicate code
doc
Core: some code refactoring
doc & code beauty
comments
debugging facility
console
FMF: correcting formmode priority
FMF: patientbase needs userbase initialization
FMF: user identification correction

Fixes issue 351