Rewrite error fixed.
micro-optimization.
Short links' clicks counts fixed.
API endpoint to shorten URLs added, fixes #280.