Added login dialog.  Did not enable login because it doesn't work
Fixed some initial loading errors
Made background case update work,and auto update on new case and case edit