Merge pull request #7 from eloquence/master

Link to CropTool landing page on Commons in edit summaries
Update links: CropTool moved to Commons:CropTool
Closing bracket
[#9] Set session cookie lifetime to two years and enforce https (need to figure out how to configure this with lighthttp)
Use PHP for http → https redirection

since HTTP_X_FORWARDED_PROTO is now supported
https://bugzilla.wikimedia.org/show_bug.cgi?id=53689
Upload as new file: Fix wrong insertion of template
Client-side check if filenames exists
Merge branch 'master' of github.com:danmichaelo/cropcrop
Fix check for filename existence

Store unnormalized names
[#9] Fix persistent storage of access token

While this could probably have been fixed by increasing the php session
garbage collection time, it seems like a more reliable solution to just
use cookies. To reduce the chance of man-in-the-middle attacks, cookies
are only sent over https. In addition, their content is encrypted, so if
they are picked up by someone, using them to authenticate generic API
operations requires decrypting them. The IP limitation for the OAuth
token adds another layer of security.
Fix logout + some code cleanup
Move session initialization
[#10] Indicate in edit summary of upload whether the cropping was lossless or lossy
[#5] Make the header link back to the start page
Update README.md
Add automatic border detection
Add missing dependency
Add more messages for localization
[#2] Rename 'exact' → 'precise' and make it the default crop method
Move spinners to res/