Starting app credentials work

Added helper function for retrieving per-partner app credentials