Enhance versionutils.deprecated to work with classes

If object being decorated is a function, it is processed as before,
otherwise a new class is created which logs deprecated message when
class is instantiated. This change comes with 2 unit tests.

Closes-Bug: #1337889
Change-Id: Ib5cc04bea0ff2ea588618599f4e42df16cb85a0d
Merge "Enhance versionutils.deprecated to work with classes"