Make static data injectable at tower construction.

This frees unit tests from having to depend on starbase_static.
Add unit tests for model.

The unit tests currently cover module add/remove, lots of input validation,
CPU/PG calculation and resonances.