added support to basic access authentication

Added support to basic access authentication, used in RESTful applications