Amazon is planning to launch a messaging app, adding social networking companies to its growing list of competitors.