Engine: implemented a boxed game display initialization

This lets engine to explicitly specify wanted margins around the game frame. At the moment this is used only to imitate backwards-compatible letterboxed mode.