Add CTCoreFolder.refreshFolder.

This goes back to the server for folder state, which means that
we get an up-to-date uidNext, uidValidity, and totalMessageCount,
rather than using the cached data that libetpan is holding locally.