fixing bugs and making some changes
Merge pull request #309 from Kixo/REDCORE-206_webservices_layer_with_authentication_11

fixing bugs and making some changes