[generator] add recognition of a 'namespace swift ...'

Make the generator prefer a swift namespace over a java namespace. Using this namespace will aid in generating code that doesn't conflict in case you are upgrading part of your project to swift, but not all of it.