Revert class extensions to .class.php

Will probably change again later, but for now restore to previous
state for compatibility reasons.