migration from hudson to jenkins

changed project from hudson 1.395 to jenkins 1.550
Most of the changes are fallout from function signature differences like
exception handling
adding Environment Inject Groovy Script Content slicing

supports hidden "(enabled)" token which will turn on "prepare
environment" for a job without modifying the property. hidden in the
sense that there is no placeholder field using the token value