Add HEAD request support to fix #4
Change the Content-Type setter into the view

Only view knows Content-Type.
Fix refactor the code
Fix #5, 501 Not Implemented when no action code