Implemented .split() and .rsplit() for ANSIString.

Found a pure Python implementation for .split() and .rsplit() in PyPy. Just took that and tweaked it for ANSIString. Come to think of it, probably would have gotten some of this coded sooner if I'd looked there first :)