Commit 89

AI hire heroes. Ambient star batching. Performance improvements. Generic
functions. Fixes.