Changed REST API base files.
Fixed configs for rails 4