API version defaults to 1

`http://foo.ckan.org/api` returns the API version 1 instead of the latest version.

Also, the link on the search page (below the search results) links to the API version 1 instead of the latest version.