Cleanup angular code. Still need to run/test/complete.
fix some glaring bugs/inconsistencies with backend