Added new static "presence start-end" view.
Created function that provides presence start-end data.
PEP8 improvements.
Created tests for presence start-end view.
Sorted imports.
Merge bug_3376
Merge branch 'swierol-bug_3376'