minor fixes
move script handling from Structure to StrucuturePrototype

That way we have one Script instance for every structure type not for every structure
run consume und produce scripts on structures in random order