Implement support for the splits API.

Should fix #75.