Added methods to open and remove documents.

onclick() will handle opening because it's a short click.
onlongclick() will handle deleting because it's a longer click so it is
intentional that it will be deleted. a notification will be sent to
indicate the data set has been changed.