Added a more granular right management system. You can allow only certain channel of stream
Forgot to do some comment cleaning
Now returning an unauthorized error in case of trying to subscribe/publish a forbidden media (audio, video or data).
Removed now unnecessary debug lines
Merge pull request #151 from kevynb/master

More granular right management. Now it's possible to authorize publish/subscription only to one media.
Two bugfixes:

1. the RED packet handling was incorrectly offsetting into final buffer by the total header length instead of the rtp header length.  in theory this matters a lot; in practice, it worked because the size of the red header doesn't seem to be different from the size of the RTP header (???)
2. Not accounting for RTP packet padding in the recorder; RTP packets can (again, in theory) be padded with stuff after the payload.  Strip that off before we hand it down to the rest of the RTP code so it doesn't have to deal with it.
Fix so we don't record corrupted frames.

When there's packet loss, there's a possibility that we end up constructing a corrupted frame and hand that to libav.  The resulting corruption is much worse than if we had just skipped the frame entirely.  This change also fixes audio handling (it was incorrectly computing header size) and optimizes it slightly so we're not doing an unnecessary memcpy.

One side affect of this is we have to examine the VP8 header before we copy it into our unpackage buffer.  This also ends up optimizing stuff slightly though.

Also, zap input processor member variable and audio buffer; we don't need either of these anymore.
Changed variable used for muted/unmuted streams
Fixed stats (changes from erizo_tree branch)
Merge pull request #160 from jnoring/master

Two bugfixes:
Added getUser() and deleteUser()
Added 404 error when user is not found
Added 404 error when user is not found
Deletes all users with the same name
Merge branch 'deleteUser'
Fixed syntax of the stats events sent to rabbitmq
Added subscribe event for stats
Changed Rtcp stats method name
Reindent and added change video Size log in RtpVp8parser
Added type (audio or video) for SR stats, fixed fractionLost