Implement cap and expose cap-related methods, latlngrect

Fixes #6. Fixes #7. Fixes #8. Fixes #9