A simple URL shortener written in PHP, Mongo, and other magical things