Split AppCatalog index.html template to reduce its complexity.

Change-Id: Ie98f79d5d123f0af588c35ad658c2d8003fdd646