Added ability to use multiple extensions on layouts.

Currently layout files are hard-coded to use the '.html' file extension. This change will allow the end-user to specify an array of extensions that are acceptable.