Add missing dependencies.
Set default selection from cookie.

Fixes #5.

Conflicts:

	js/controllers.js