Add rate-limiting on freegeoip sample app

This may be disabled by defining QUERIES_PER_HOUR constant in freegeoip to 0.
Useful for benchmarking purposes.
Rename extra_modes to open_mode

Keep O_RDONLY around to avoid having to OR it with priv->extra_modes.
Allow {{variable}}} in template (render as '}' if variable is empty)