Implement the grid username mapping

plus a bit of code cleanup/refurbishment due to changes in the plugin versioning scheme and the ipv6 address representation