Added fixes for redirecting logs to syslog if no file is found.

    * Added tests for checking URL shortening.
    * Added fixes for redirecting to syslog if no file is found.
    * Removed dead files.