Consolidated calls for notes and links into a common function.

Changed output for note and link so that "OK nnnnn" is output,
where 'nnnnn' is the ID of the newly created push. If there is
a failure to push, then "Failed:" followed by the body of the
result from the server is output.