Ensure unique short URLs with MongoDB unique index

Closes #3.
Log errors to console.error