Move 'reflection' and 'properties' stuff to common module, so both core and idm modules can reuse it