Purchase log action api dog food download clear IP locks

See issue #1576

@JustinSainton If this can go in 3.9.0 let me know and I'll update the since doc blocks.

This is based on extending the PR #1616 so you could commit this instead of that PR, or comit that first and then I'll rebase this.