Merge pull request #159 from pamod/mqtt_dev

Removing the topic prefix which is appended to the node queue name.
code cleanup.
Comments added.
Merge pull request #160 from Asitha/code-cleanup

Code cleanup
Introducing the path to handle acks received for QOS 1 and 2.