Using a recent activity object for notifications
Initial testing with task schedule and resque, message jobs
Mount resque admin with schedule addon
More emailing messages converted to recent activity + workers
Merge branch 'branch-v2' into branch-v2-refactor-emails
Removed delayed_jobs

We resolve to change from delayed_jobs to Resque, so all delayed_job were removed and replaced for Resque. Some emails were changed to the new format used with Resque. The tests are missing yet.

refs #811
Update space_mailer.rb
Update space_mailer.rb
Started a refactoring in the email tests

Some modifications on the test environment were made to ensure that ".delivery" method can be tested. New tests were created to the mailer class, some tests are pending yet.
Merge remote-tracking branch 'origin/branch-v2' into branch-v2-refactor-emails

Conflicts:
	Gemfile
	Gemfile.lock
	config/locales/pt-br/mconf.yml
	config/routes.rb
	db/schema.rb
	spec/lib/mconf/digest_email_spec.rb
Continuing reviewing and refactor the emails

Refactored most of the emails and the tests were already made for them. Some tests need to be improved, and some emails still need to be changed to the new format.

refs #371
Emails from space_mailer, and the worker used to send the processed emails received some improvement.

refs #371
Done more tests to the emails

refs #371
Merge remote-tracking branch 'origin/branch-v2' into branch-v2-refactor-emails

Conflicts:
	Gemfile
	lib/mconf/digest_email.rb
	lib/mconf/invitation.rb
	spec/factories/join_request.rb
	spec/mailers/notifier_spec.rb
Remove unnecessary call to JoinRequest#send_notification

Notifications for join requests are now send via resque scheduler from
recent activities.
Show recent activity items for join requests
A few more variables in the css files, easier to customize

Pulled from work at mconf-ufrgs/mconf-web@master
Improve redirects after login

Solution based on:
https://github.com/plataformatec/devise/wiki/How-To:-Redirect-back-to-current-page-after-sign-in,-sign-out,-sign-up,-update

refs #867
Redirect back properly after signing in via shibboleth

It stores the latest "valid" page before a login via shibboleth and returns
to if after the login.

refs #862
Several small improvements in the emails after PR #26

Most notable: removed the unused model Informer, renamed the mailer Notifier
to ApplicationMailer, renamed the ApplicationMailer to BaseMailer.

refs #371