Cleanup.
Move template loader classname out of environment options.
1: sort() should not preserve keys
2: make some parameters optimal
3: change split: limit now limits the returned number of chunks but splits at every possible position
Test the standard functions.