refactor trail function names
Add pipeline for css/js minification and template files for UI.

UI stuff is based on the workless framework.
Add django-pipeline to requirements.