Fix uploads by fixing typo introduced in 28b14653.

Add a http test to ensure that image upload works as expected by
posting image data at the page. This doesn't yet validate that the
upload itself worked, only that the page returned without error.

Change-Id: I5401e04e36022441982f2e602b58b1b4b7b44d2b
Only remove the original path if it has changed.

When uploading images, we move the raw image to a semi-predictable
path based on the user's team, but using the original file extension
This image is then read, converted & re-output to a fixed path.
As these two paths could be the same, such that when the 'original'
was removed, we in fact removed the final image. Avoid this by checking
the paths are different before removing them, and add a test that there
is an image uploaded, using images for both possible cases.

Change-Id: Id95faff48b6e5ef78869375e5ebac8472d0fbc12
Wrap very long lines in the index template.

Change-Id: Ida25e5e9260e6b2fd87e890496d47ed98a74bedb
Fix #2154: Tell teams to get permission for team-status content.

2014-01-16 Patch set 2: s/permission/licenses/ per Andy's suggestion.

Change-Id: I252c4f8f4d0fde34f4c9055ff9afe4a741581504