Add Magic.Open() function.

This might be a convenient way of using Magic as it will pass down
pointer to Magic instance into the callback function to use within,
plus it will close Magic database once said callback returns.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>