Added utils.js to store common functions.  Added functions to obtain clip xml name and reverting it

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added id, original order, actual order, playlist id and name attrs to Clip

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added id to Playlist

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified melted-node-driver to use utils for getting xml file name from clip

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified json driver to fill the new attrs of Playlist and Clip

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified mongo driver to fill new attrs of Playlist and Clip

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified mosto core to show the id attr of Plalist in log messages

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified mosto core to use Playlists id instead of name for identifying a Playlist

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified mvcp driver test to use new xml names and test them

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified utils.js for using it static instead of creating new object

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Optimiezed code in forEach of clips

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Modified the usage from _id following advice from @lacrimology

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Fixed missed name attr on clip creation

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added _id attr to blocks created for testing so tests wont fail

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Fixed function declarations

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
the name should be list name, no it's id, then

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
test id and name

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
whitespace

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Merge pull request #46 from inaes-tic/jmrunge/clip-names

Tired of waiting. Fabricio needs this as well, all tests pass, and I don't see any problem with this code
Changed drivers initialization to non-blocking and added timeout retry mvcp-driver connnection.  Made playPlaylists function wait for mvcp-driver to be connected before start sending commands.

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>