Define Incoming and Outgoing REST APIs in DB

Instead of relying on app settings, now REST APIs can be defined in the
database for both incoming and outgoing results.