Please pull bugfixes

The commits should speak for themselves pretty well.

The zero-padding change changes post urls (when no permalink is set), but this just seems saner.

Thanks for jkl!