add trailing slashes for gallery folders

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
remove _glue_xml_lines for performance reasons

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
fix malformed dates

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
python 3 doesn’t like leading zeros

Signed-off-by: Chris Warrick <kwpolska@gmail.com>