Using created function for slightly better performance.
New implementation of the parser in the connection.

The new implementation is more performant and "sane".
Moreover, it required a refactoring of the reconnection logic, which has
lead to a more 'stable' algorithm.
Extracted the basic packet reading from the PacketParser.
Add syntax highlighting, link examples, adjust formatting

Needed more pretty.
Increase default keepalive value.

Low keepalive values may be important in some applications, but this is something that should be decided after some thought. A minute keepalive should be acceptable in most cases, so is more appropriate as a default than a low value.
Adding a little buffer to cope with slow connections.
Merge pull request #117 from oojah/master

Increase default keepalive value.
Sane default clean client behaviour.

Closes #116
Bumped v0.2.11.
Merge branch 'new-connection' into v0.3.0

Conflicts:
	lib/mqtt.js
Merge branch 'clementineinc-master' into v0.3.0-dev

Conflicts:
	lib/client.js
	lib/mqtt.js
Refactored client and secureClient tests.
Improved packet parsing.
Revert "Adding a little buffer to cope with slow connections."

This reverts commit cf506baa310312bc87d17a3cb4272d50b9b5ca1e.

Conflicts:
	lib/connection.js
Avoid using arguments in generated function.
Merge pull request #119 from timoxley/patch-1

Add syntax highlighting, link examples, adjust formatting to the README.
Fixed borked example in Readme.

Using the example verbatim throws "Error: Invalid message id" in the suback. Please sanity check.
Merge pull request #120 from timoxley/patch-2

Fixed borked example in Readme.
Add setEncoding method to connection
Update MqttClient to support publish encoding