Fixes #14. Separate out some functions and go fmt

Turned the validLangInQuery method into an extractLanguage method which
takes a request instead of a string. Created a setLangCookie method to
actually set the cookie.
Ran go fmt on the code.