Improve how dropdown highlight is determined

This commit adds an application helper file that takes a simple string
relating to the dropdown group that the layout file is checking. If that
dropdown matches the current path, then it'll return true, making that
dropdown highlighted on the navbar.