Purge MAXBUF in favour of a configuration option.

This replaces the MAXBUF constant with `<limits:maxline>`.

As of 20/05/2013 23:30 this pull request kills **all** remaining uses of MAXBUF. ~~When #542 gets merged this will probably drop even further.~~