Machine Learning for Detection and Mitigation of Web Vulnerabilities and Web Attacks