Refactoring code, added web client support, added jsf support

Signed-off-by: Victor Zagnitko <victor.zagnitko@yandex.ru>