Clean up Post class. Add capcode support.