Fix server side issues so app runs
Update html and angular controller to work in rave env