Removal of internal Realmd and added submodule

Tested and compiled OK on Windows