Upgrade to 3.5.1

This is an upgrade to 3.5.1. Please pull it as it contains security fixes against previous versions. Thanks! :)