Setup updated.

`Setup.py` updated, `setup.cfg` added for Python Wheel compatibility.
Base model `ensure_index` added.

A few related simple tests added.