Added lots of setup stuff for resources and workers and unit stuff in
general.