Move HTTP request onto its own thread

This avoids blocking app progress
Fix jruby specs
Wait for thread to finish
Merge branch 'threaded'

* threaded:
  Wait for thread to finish
  Fix jruby specs
  Move HTTP request onto its own thread

Conflicts:
	spec/notification_spec.rb