Add Maximum Fragment Length support

This is based on the pull request in https://github.com/Voxer/stud/pull/2.

I've done some local testing, and it seems to work fine. The only change I made was fixing the config file parser, which didn't allow zero as a fragment length.