Patch for server timing out for invalid URL

Previously used unshorten function would cause
server to time out when the url was invalid. Now
returns originally submitted url if there's no
response from the requested server.

Added localsettings.js to .gitignore

Change-Id: I0c2bc9a42c5065a80bce8e41fbc38bb4ee60d155