Added custom layout support and fixed bugs in the mustache jake task