Replace hardcoded URLs with url template tag
Cleanups: multiple minor cleanups

ctx, form fields, imports order, shorten calls, blank lines, remove try
block, ...
Cleanup: removed deprecated fields
Use elif template tag
Avoid loading unused baseurl template library
REMATAR