Add layout + partials, fixes #6

It isn't pretty, but it is certainly functional.