Cross origin request from plugin

Well that was easy…

https://github.com/abyrnedesign/discourse-json-follow-list/commit/d32ecf780497e64a5e6fc65d09394fdaf706e4bf

added 2 checks from the application controller.

skip_before_filter :check_xhr #allow API requests
before_filter :ensure_logged_in #or just check the users logged in

skip_before_filter :check_xhr ← does as it says.
looks for a XHR request and requires an API key skips and other checks if found.

before_filter :ensure_logged_in ← another brilliant function name.
Looks for user login

Close it up @codinghorror !