Some code cleanup in core.

Changed member names in Core to camel-case.
i.e. m_friendrequest -> m_friendRequest
More code cleanup