Generalize request handling a bit more
Add templates to the shorty resources