Add project for the generator.
Add more information to bindings for the static registrar.

The static registrar needs more information in order to correctly
generate the static glue code - in particular it needs to know if
a type is a wrapper type, if a type is a protocol and if a method
is a variadic method.
Fix the library handle for __Internal handles.
Write Field attributes to the generated code.