Merge branch 'Lacrymology/new-caspa-integration' into dev

* Lacrymology/new-caspa-integration:
  save with {safe:true}
  remove comments
  Changed playlist start test as attr startDate didnt exist any more and start attr already is a moment
  Added setTimeout after saving objects to db so test stop failing when trying to recover same object
  Added title attr to playlist so log message stops giving error
  Comented setWindow code as it does not exists any more
  Restored skipped test
  Left comented code for @Lacrymology to take a look at and then erase it!
  create pubsub message from models, too
  create test db data from models instead of hardcoded file
  use $ instead of - for playlist/clip id separators in filename
  don't use Date
  fps now is in piece.video, not directly under piece
  pieces now come from a different mongo collection
add back mosto status test

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

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

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
return models tests

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
getWindow doesn't exist anymore

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fix 'should responde to create messages' test for new format

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
use new commands

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fix blank clip name

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
add functional test back

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
require only the... required.. driver

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fix helper functions for new models

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
there's no more 'promisedCommand' methods

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
the telltale string changed

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
call done(), make sure we pass no arguments

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
is_synced receives the time

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
better logging on mongo driver

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
listen on status change on pub/sub instead of on mosto events

(more blackbox'ed)

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
remove dead code

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
make sure to use safe:true in inserts

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