Strip whitespace from tags/collections

Tested-by: Mark Somerville <mark@crocodile.is> [Arch, MRI 2.1.4]
Signed-off-by: Mark Somerville <mark@crocodile.is>
Add tags via an AJAX form

Tested-by: Mark Somerville <mark@crocodile.is> [Arch, MRI 2.1.4, Chromium 38]
Signed-off-by: Mark Somerville <mark@crocodile.is>