Fix rails4 deprecation warnings

That appear when running topic_spec.rb
add todo
Patch ActiveRecord::Relation#references and clean up
include plugins directory
Authenticate with Discourse via OAuth2

See https://github.com/michaelkirk/discourse_oauth2_example for an
example of how you might integrate your existing oauth2 provider's
authentication via a Discourse plugin.
omniauth-oauth2 should be required in plugin which uses it
Merge branch 'master' of github.com:discourse/discourse
Switch out faviconNotify for favcount.js
Merge pull request #1353 from chrishunt/favcount-ftw

Use favcount.js v1.0.1
Merge pull request #1336 from novemberkilo/master

First pass at fixing rails4 deprecation warnings
Merge pull request #1350 from michaelkirk/feature/oauth2

Feature/oauth2
Merge branch 'master' of github.com:discourse/discourse
we need to decalre favcount to keep tests happy
correct user simulator
don't try sending emails out in profile mode
link to first unread as opposed to last read in topic lists
correct broken logic in screen track that was causing read status not to flush properly when navigating using the suggested topics list.