automatically assign ids to stacks with a plan name instead of an id, allows for kit usage. Replaced commons-codec with MiG base64 encoder