Refactored PR #101.  Thanks to Emilio, Ptah, and the LiveNinja team.

(cherry-picked from b676b60 by Joseph Frazier <joseph@onsip.com>)

Conflicts:
	THANKS.md
	src/Hacks.js
	src/WebRTC/MediaHandler.js
Mask DTLS everywhere

(cherry-picked from 9345d0c by Joseph Frazier <joseph@onsip.com>)
WebRTC.MediaHandler: remember when to call self.onIceCompleted

This helps Firefox 33 compatibility.

(a non-Promise version of 91cedb4999f3e50e242c01ac38f1c18508d6a0cb)
Pass logger from MediaHandler to MediaStreamManager

This makes {log: {builtInEnabled: false}} work for userMedia-related logs.

See https://groups.google.com/forum/#!msg/sip_js/85bNIhix_2A

(cherry picked from commit fc1b910a4203f7b62fd8df44f49e6570dcf6b2b7)
Grammar: parse entire event-type into a string

fixes #84

(cherry picked from commit 9a3ad2d5aa8bfa7def706638a992f27219ffbfe1)
Subscriptions now emit accepted (thanks avillaci)

(cherry picked from commit 7f82bb870d762d9eb0d6ed3509409ec2055fb8f5)
Allow outgoing Subscriptions that expire in under 3600 seconds

This addresses:

  https://groups.google.com/forum/#!msg/sip_js/TshLqnjmjKY/uMXb6aihu3oJ

Note that RFC 6665 does not require subscriptions to last an hour, it merely
allows notifiers to reject subscriptions that are shorter:

  http://tools.ietf.org/html/rfc6665#page-18

(cherry picked from commit b2798f4dd595a4e98a2f809ada970524055caaf5)
removed old subscriptions on resubscribe

(cherry picked from commit 9ed72b5d739de6e3305ef523b00769da72ed4eeb)
Update MediaHandler.js - Fix Chrome HOLD.

Fix the chrome hold by allowing it to fire the readySuccess() when connection state is completed, not connected (guessing this is a Chrome assignment issue?)
(cherry picked from commit f3bad1b5411811265771bf4dd32ec659d556ffb4)
Session#refer: actually define originalTarget

(cherry picked from commit ca4b462b25b3c606931cf1a3f79ffb1935894243)
WebRTC.MediaHandler#getDescription: call #render() after stream is added

fixes #92

(cherry picked from commit 947666d1f5d81c3d12a694074fb106c6ffb4db2a)

Conflicts:
	src/WebRTC/MediaHandler.js
Moved wsServerReconnectionTimeout/Max Reconnection moved from internal to configurable variables; credit to SD

(cherry picked from commit 00166c5f19d566d0df8f87ebbd6ea7065c555e9e)
Looser toplabel parsing

(cherry picked from commit 40291f6ab29de51b6527b7054026c44189eb9756)
iceFailed event

(cherry picked from commit 89751413d26c1673891836ab981044a7d9f7eb1a)
Header parsing shouldn't throw exceptions.  Thanks to Balazs Sandor for PR #102

(cherry picked from commit 719f7d60103322bbe2d7db3e38e746bafdf73057)

Conflicts:
	THANKS.md
Gruntfile.js: tell uglify to give ascii output

see https://github.com/onsip/SIP.js/issues/106#issuecomment-57349358

resolves #106

(cherry picked from commit bd5d7e7e73e5d64283459efb3556f154c7a5b2ba)
UA#onTransportError: don't try next transport if UA is closed

addresses #63

(cherry picked from commit f68e2f66ad2816e1f3b33f8358dda6cc4bb676d4)
UA: listen for 'unload' and call #stop()

This closes sessions when navigating away from the page/tab

(cherry picked from commit 13667d5af6229f2fce97c39a27d47dfccac353fd)
Bump version to 0.6.3
0.6.3 Release

Adds Firefox 33 support and a handful of miscellaneous bugfixes.