Several updates and fixes for Blesta 3.1.3

Several updates and fixes for Blesta 3.1.3