[webui] port attributes to use API models
[webui] avoid visiting / for every login in a test
try rack_test