Refactor: Topic#invite_by_email

Extract Topic#email_already_existas_for? and Topic#grant_permission_to_user
Fix failing spec due to missing variable in extracted method
Refactor: Topic#invite_by_email

Extract Topic#email_already_existas_for? and Topic#grant_permission_to_user
Fix failing spec due to missing variable in extracted method
Merge branch 'refactor-topic-invite-by-email' of github.com:cored/discourse into refactor-topic-invite-by-email
Upgraded and refactored Sanitizing. Much less crap should get through now!

Conflicts:
	app/assets/javascripts/discourse/components/syntax_highlighting.js
Reverting the Sanitizer commit in case we have to do something urgent
before we deploy it early next week. It's in the branch `sanitizer` for
now.

This reverts commit 9e93d8ed5209c5c65dfa00fa9b9d17cc8de13244.
Allow `:p` to show a tongue as well as `:P`
FIX: avatar was attached to the user who uploaded it...
add image authorization on upload_avatar
prevent share-view being clipped at viewport bounds
add custom clean env
filter params correctly from error log
security fix, anon should not be treated as though they can create anything
added upstart script for Discourse
Merge pull request #1523 from dbarbera/avatar_formats_fix

add image authorization on upload_avatar
cloud66 easydeploy
Merge pull request #1526 from pkallberg/master

Cloud 66 EasyDeploy
security: when login is required don't return the site node in the preload store
added a job to clean up orphan uploads
faster migration by avoiding to query the db for local thumbnails