Update to 3.1.0-alpha

Add namespaces to files where necessary
Fix composer.json