[work in progress] Debt management

@benlovell 

Could you check out the ruby/routing and comment?