Added basic security support in Rest client
Upgraded API interfaces