Remove rails related code

Moved the files structure towards a more js project style.
Fix build tasks for new file structure