Renamed registerHandler to subscribe according to MQTT specification

Change-Id: Ia95f4e0cfb7d28c9e0821d9622f7acb33c723155