fix handling of multiple static paths

with multiple --static options, mdserver would always serve from the
first one.
get template from environment
fix file-not-found and unicode behavior
get default static mount from environment