Add class and methods to get the list of layouts

To make if easy to get the list of layouts available in the server. Can also
be used in the future to redefine layouts.

refs #1129