Add static/templates folders to distribution and fix reference to them