Create cost_control app and migrate tests to use it

This addresses issue #760