fix encodeId
START PART 2:  https://www.drupal.org/node/2301273
apply patch https://www.drupal.org/files/issues/menu-2256521-MenuLinkTree-review-do-not-test.patch
convert createLink to addDefinition