Compacting overlays into a single file. Refactoring overlay initialization.

review @mvrable