Improved regex patterns for Google App Engine

Generates patterns for images, paths, and versions so that the generated
app.yaml is more compact.