Add support for clearxlogtail

I've added support for clearxlogtail which reduces the size of the WAL files dramatically, especially in the case of a database with little activity. In our case it reduced our daily storage from 12GB to 300MB.