Updated controllers to use ajax.

Also created some builders for the viewmodels.