template: Flask 1.0 compatibility fix

* Fixes return value of Jinja loader iteration due to change in
  Flask 1.0. (closes #2216)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
workflows: object navigation

* Adds buttons for going to previous/next workflow object
  in the Holding Pen detailed display. The previous/next
  functionality is based from the state of the maintable
  order.

Tested-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: previous/next amendment

* Moves the previous/next buttons to the nav bar on
  Holding Pen detailed display.

* Factors out some code to separate functions.

* Removes unused workflows.css.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: amend start_workflow to not pass id_parent

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: html raw marc views fixed

* Fixes HTML, RAW and MARC views in details page.

Signed-of-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: better workflow representation

* Calculates the path of tasks that workflow has
  followed and represents with different colors
  the completed, last and blocked tasks.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task description added

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: added a decorator

* Adds a decorator to pass the attributes (docstring, name) of a
  function to its closure.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task details fixed

* Adds more information for each
  task in details page.

* Removes workflows.css.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: workflow representation improvements

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: bibclassify results templating

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: PEP8 fixes

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task names update

* Task names to display are chosen from
  the description attribute of the task,
  if not present from the first line of
  the documentation, if still not present
  or too big the function name is used.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: bibclassify task fix

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: workflow representation fix

* Squash me later before pull request.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: signals added
workflows: PEP8 fixes