update rails to 4.0 and remove useless files
add missed files