Migrate mailer to rails3
Fix proposals ordering