Added a console and tasks to add and retrieve short urls.
See php app/console
Removed unncessary code that used $_SERVER in the cli context