fixes to peer-connection (avoid renegotiations)

* Moved to using better logging for datachannel.ts
* Added sourcemap for freedom
* Made peer-connection avoid bad renegotiation events (now starts negotiation by opening a data channel, so that the SDP headers always include data channels)
* Cleaned up sample chat app
* Added catch statements for errors
* Set options for data channel opening to optional. 
If we e.g. switch to closure for compilation that would not be considered a
breaking API change, but that would break this usage.


On Wed, Aug 13, 2014 at 10:00 PM, Lucas Dixon <notifications@github.com>
wrote:

> In Gruntfile.coffee:
>
> > @@ -50,7 +50,7 @@ module.exports = (grunt) ->
> >        beautify: true
> >        preserveComments: (node, comment) -> comment.value.indexOf('jslint') != 0
> >        banner: banners.map((fileName) -> fs.readFileSync(fileName)).join('\n')
> > -      footer: footers.map((fileName) -> fs.readFileSync(fileName)).join('\n')
> > +      footer: footers.map((fileName) -> fs.readFileSync(fileName)).join('\n') + '//# sourceMappingURL=' + name + '.map'
>
> please do explain... break in what sense?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/uProxy/uproxy-lib/pull/44/files#r16221286>.
>