Refactored Debt class

- Namespace
- One key in the database
- Sets the amount depending on who is the sender in the key
- Extracted key logic into it's own class
Spec fixes