Cleans up main menu initialization

Triggering the expandation of the selected menu moved from base
layout to application.js.