Merge pull request #1 from krzysiekbarca/devel

TD-153 device session state types
TD-57 next part
Merge pull request #3 from szprutamich/devel

TD-57 next part