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
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
Moved cloud66 config out of .cloud66 into config/cloud/cloud66 it is way too prominent as the first folder in github
Amended documentation to point to it from the install guide in the alternative section
Removed callout from the ubuntu guide, as it is unrelated
Merge pull request #1524 from diminutivesloop/share-view-fix

FIX: prevent share-view being clipped at viewport bounds
Adding post details in preparation for the API importer code.
Upgraded and refactored Sanitizing. Much less crap should get through now!

Conflicts:
	app/assets/javascripts/discourse/components/syntax_highlighting.js