pieces now come from a different mongo collection

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fps now is in piece.video, not directly under piece

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
don't use Date

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
use $ instead of - for playlist/clip id separators in filename

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
create test db data from models instead of hardcoded file

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
create pubsub message from models, too

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Left comented code for @Lacrymology to take a look at and then erase it!

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

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Comented setWindow code as it does not exists any more

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added title attr to playlist so log message stops giving error

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Added setTimeout after saving objects to db so test stop failing when trying to recover same object

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Changed playlist start test as attr startDate didnt exist any more and start attr already is a moment

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

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
save with {safe:true}

unless you pass {safe:true} to mongodb-native's insert/update/save, the callback is fired immediatly

http://mongodb.github.io/node-mongodb-native/markdown-docs/insert.html

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Merge pull request #123 from inaes-tic/Lacrymology/new-caspa-integration

Lacrymology/new caspa integration