Added shared TypeManager instance

- Splitted memory/__init__.py
- You can now create a type from a file or url
- Added TypeManager.function_typedef()