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
prevent share-view being clipped at viewport bounds
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
Merge pull request #1528 from JEG2/master

Adding post details in preparation for the API importer code.
adds unit tests for Discourse.View
FIX: Query params were going a bit haywire when going from topic to topic.
On mobile, show new user usernames in grey, and highlight system posts like the desktop site does.
FIX: edit category modal with no title, empty modals that can't be closed. Added a better way to hide a modal without really closing it.
FIX: don't load post.rb a second time in dev env