Port oauth_plugin to rails3