Fix constructor; add URL shortening

Fix constructor to use proper default Redis port and create a database object.

Add method to shorten long URLs. This sets information in the database except
for initializing the visit information; this will be part of a future commit.