Allow framework users to mock martini.Context.
Add godoc comment and a test for Context#Written().
Merge pull request #141 from shuhei/mock-context

Allow framework users to mock martini.Context.
Static assets should only be served for GET requests.
Return upon writing status
Fixes regression introduced by
https://github.com/codegangsta/martini/pull/143.

1. The check for non-GET requests should occur after checking the static
file is present. Otherwise, we are returning 404 for all non-GET
requests.
2. We shouldn't set the status code to 404, as the router could override
the behavior. GET localhost:3000 could serve index.html while POST
localhost:3000 could respond with some custom response. If we returned
404, you would not be able to override such behavior.
3. The router will handle returning 404 when there is no such override
defined. Updated the test to use the router so it does.
Merge pull request #144 from jeyb/static_for_get_fix

Fixes regression introduced by codegangsta/martini/pull/143
option to disable logging when serving static assets
changed optional parameters to StaticOptions struct
Static : add support for HEAD requests (also avoid useless filesystem call for non HEAD/GET requests)
Static : fix and improve tests.

- The tests were previously always passing (response.Code is initialised to http.StatusOK, without a router it won't be modified even if the file does not exists).
- Also check response.Body for HEAD and GET requests.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	static_test.go
added missing test directory
cleanup and removed SkipServeIndex as it has no real use
Merge pull request #147 from JamesClonk/master

Added option to disable logging when serving static assets
Static : add Prefix option

This allows to easily share a directory under an arbitrary url prefix
Merge pull request #152 from vanackere/static-prefix

Static : add Prefix option
Fixed nil interface check in tests
Added HTML response to Recovery middleware.
Merge pull request #156 from JamesClonk/master

Added HTML response to Recovery middleware.