Dynamically create rgdMap on client side

This transfers the serv-side stuff to the nodes
Clean-up code after last commit