Incorporate actions so stats functions can be hooked in on WordPress.com

See 683938878cac83f45d9b6cc3c14e96f52afa9912
Restore actions needed for bumping stats on WordPress.com

See 683938878cac83f45d9b6cc3c14e96f52afa9912