update rails to 4.0.1
init api controllers

[#59611928]