Added HTTPS sample
Code factorization: added Application class for CLI
Updated the documentation