Continue simplifying api.js

This should be good enough for now.
Simplify address.js

Definitely need to create models with an address. The address.js and
api.js rendering scripts share a lot of functions that should be in a
single address script.