Set inapp on contribution (bug 1020546)

- Set inapp foreign key on contribution creation
- Update tests
- Update debug page