Add a renderTemplate() method to wrap template expansion in a try/catch to ensure it doesn't fail.
When parsing the published date, handle a simple date object of the form {date:, time:}.
Add minimal parsing of old sentence types.
Make this sample valid JSON.
Return 404 if a sample cannot be located.