Fixed unit tests.

Except for test_lifeExpectancy(), which is still broken due to #12.
Implemented new 'buildtables' management command to prebuild all extrapolation tables.