Added methods for managing the lifetime of native displays, closing issue #1.