First stab at resolving gh-438.

Tests included in commit. Fix for gh-438 - adjustment to logic which
dictates how members are billed their quarterly equity. Members who have
paid ahead are no longer billed.
Updated some utililty functions and tests for gh-438
Merge branch 'equity_billing_adjustment'