ID#146: reformatted code after review.
ID#195: added convenience method for sending 404 and 500 answers.
ID#196: added convenience method to express mandatory attributes.
Removed path and domain for delete as this causes issues with some browsers.