fixed creating of short url
added logging statements for server-side exceptions