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.
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
Propagate transport fail state (e.g. 500)

When the state 'TRANSPORT_FAILED' is raised it is propagated to the listener. This would allow to subscribe to a onError callback in javascript for example:
https://github.com/ging/licode/blob/master/erizo_controller/erizoJS/erizoJSController.js
```
wrtc.init( function (newStatus){
          var localSdp, answer;
          log.info("webrtc Addon status" + newStatus );
          if (newStatus === 102 && !sdpDelivered) {
            localSdp = wrtc.getLocalSdp();
            answer = getRoap(localSdp, roap);
            callback('callback', answer);
            sdpDelivered = true;

          }
          if (newStatus === 103) {
            callback('onReady');
          }
         if (newStatus === 103) {
            callback('onError');
          }
        });
```
Add the stream when ice negotiation finishes.

When it takes longer to send the 'ok' message over socket.io than it
takes to move the ice connection into the complete state, we end up
failing to notify everyone else in the room that there is another
stream.

Instead of waiting for the 'ok' message, create the stream when the ice
connection moves into the complete state. This eliminates the race
condition and ensures that a connected stream is always fully published.

The other side effect here is that the 'ok' message is no longer needed.
I left it for compatibility, but it can easily be removed.
Fix to address a deadlock that happens sometimes when ice negotiation fails.  updateIceState fires an event holding stateMutex_, and that causes a lock with the WebRTCConnection class.  Also, clean up some vestigial junk, make locking more granular (we were holding nested locks to check ice state, for example--putting the lock after checking ice state removes that issue), etc.
Remove a bunch of unnecessary manual locking.  When using RAII objects (like unique_lock, for example), when the object goes out of scope it automatically unlocks.  So there's no need to do this before a return statement, before going out of scope (e.g. inside a while loop), etc.
Fix two problems:
1. Local candidates were put into a global variable, which means they could be overwritten and broken by simultanious calls to fetch local candidates.
2. Was not deallocating memory from nice_agent_get_local_candidates
Fix a memory leak in DtlsSocket where it was not calling X509_free(). Also remove some unused functions, get rid of C-style variable declaration.
Merge pull request #180 from jnoring/master

Some mutex cleanup, fix for a deadlock