Fixed a small Memory Leak
Fix destructor video outputs.

This fixes a crash on Linux that supposedly occurs when pthread_join
is called multiple times.
Close rtmp connection when stream is stopped.

This will close the connection to the server when the stream
is stopped.
libobs-d3d11: Fix vertex buffer bug

It was using the point buffer for points, normals, colors, tangents,
instead of using their specific buffers
obs-x264: Use regular CBR if x264 version < 139

Some linux packages on linux are way too old.  Very annoying.
obs-x264:  Woops, forgot to remove .rc
Merge pull request #71 from fryshorts/master

Some minor fixes
Improve output packet interleaving

The 'wait' constant was a terrible means of trying to ensure that the
packets were interleaved.  Instead, calculate the current highest
timestamps of each encoder that's present in the interleaved buffer, and
use that as a means of detecting whether the current packet should be
sent off.  This will guarantee sorting without relying on some arbirary
constant that 'assumes' that it'll be interleaved.  It also reduces
buffering any more than what is needed to interleave.
Fix bug with matrix rotation function
Add helper functions to obs_data and fix bug

Add math helpers to the obs_data functions for vec2/3/4 and quat, and
fix a bug where it wouldn't load arrays from json
Add preliminary saving/loading of scene/sources

This saves scenes/sources from json on exit, and properly loads it back
up when starting up the program again, as well as the currently active
scene.

I had to add a 'load' and 'save' callback to the source interface
structure because I realizes that certain sources (such as scenes)
operate different with their saved data; scenes for example would have
to keep track of their settings information constantly, and that was
somewhat unacceptable to make it functional.

The optional 'load' callback will be called only after having loaded
setttings specifically from file/imported data, and the 'save' function
will be called only specifically when data actually needs to be saved.

I also had to adjust the obs_scene code so that it's a regular input
source type now, and I also modified it so that it doesn't have some
strange custom creation code anymore.  The obs_scene_create function is
now simply just a wrapper for obs_source_create.  You could even create
a scene with obs_source_create manually as well.
Add support for changing the audio device while recording

Changing the audio device in the source properties will now cause
the plugin to switch recording to the new device.