Initial commit, code extracted from Kurento.org kws-media-api project