Improved rest example + bug fix

While writing small article on topic, I have decided that best documentation is well-commented working example ;) Now rest example shall show and explain almost everything this module is capable of.

Also found a bug while writing this, name for sub-interface properties wasn't adjusted when constructing url in rest client. Fixed.