Renamed registerHandler to subscribe according to MQTT specification

Change-Id: I55e73d21e0d75ad4af1dda358c816362c524bcad