move some code out of servers to viewmodel
login work in progress
no more javascript in index.html
big changes to add a login page