Buildout bug 893

## Add buildout to presence-analyzer

### Scope of this pull request:

 - add buildout
 - fix for test
 - code cleanup

### Tests:
 - all tests ended successfully

### Notes:
  - no pep8 issues (empty gist)