Added WebM / VP8 codec support

Added WebM / VP8 container and codec support. Also modified the
concatenation of filename and extension to allow for extensions longer
than 4 characters (e.g. '.webm').