[api] initial porting to rails 4
[dist] use rvm 2.0.0 to test OBS