move templateFuncs to one file, add middleware context.
fix
Merge branch 'master' of github.com:gogits/gogs

Conflicts:
	routers/user/user.go
	web.go
update tmpl
remove padding