added first attach current priority
tries to keep track of first port attachment and give it more current when current reduced to ports
fixed bug in soc display by using battery averaged over about 15 seconds instead of instantanteous
TODO: watch for weird freezing up when second device attached!