internal messaging with functioning badge count

Updated messaging system and added working count to nav bar