refactor tons of makerlog code

The frontend is too messy, so tonight I’m going to clean it up a lot.