Change spend API to use spend_detail view instead of spend table.
Finish renaming payment methods to accounts.
Tidy up & remove commented out code and debug logging.
Remove old modal code from main template.
Added categories API.