Add endpoints for source and translation string details.

Note: this includes changes from adding the debug command-line flag (in a separate pull request). Please ignore those - I will re-create the PR when those changes are merged so it is cleaner.