merge app.js into main.js; add {% url %} tag; use {% url %} for all urls

url tag is minimal but still pretty complex compared to a filter;
{% url %} should probably get its own package.