Use unaccent when possible

Use mako on functions.sql so we can use unaccent on stoq_normalize_string when
available (postgresql 9.0+), so we don't have to worry about which one we are
using on Stoq.

Change-Id: I5c2727a487d4045093010382262d4cdbd12719f0