Some refactoring related to common module and it's usage

I did 2 changes:

- moved 'reflection' and 'properties' stuff to common module, so both core and idm modules can reuse it (previously it was duplicated and same classes were used in both 'idm' and 'core' module)

- remove Base64 class from IDM module and fix imports according to it