Bug fixes, API client update

- Caller.php now checks the incoming endpoint request to make sure its
not an external link. If its internal the endpoint will be appended to
the base URL
- New helper function for checking whether an endpoint is an external
link
- Updated user preferences test data to match content in database
- SQL dump updated