Minor improvements

- Now the cache clear script creates the cache and logs directories if they are not defined
- Removed auth credentials of Behat
- Improvements in code style