participant modal dialogs
participant modal dialogs
participant modal dialogs
event actions
fixing mocha tests

server/config/config.js
1. Make module export the function what return config object according to passed argument or environment settings.
Previously, module export config object directly. So, once module required it's export result cached and can not be changed.
This prevent getting right config programmatically by changing environment variable.

Gruntfile.js
1. Added call to config exported function in task 'nodemon'.
Previously, module config was first required here and cached.
By default module 'config' returned development configuration.
And other tasks also receive it.
2. Added test environment setting to requires of task 'mochaTest'.
Now, module 'config' will return test environment configuration then required.
In this way, task 'mochaTest' will use test database.

test/mocha/setup.js
1. Added utility module what if required and executed will connect to database and drop it.

test/mocha/database.js
1. Added mocha database tests

packages/events/test/mocha/event/model.js
packages/participants/test/mocha/participant/model.js
packages/videos/test/mocha/video/model.js
1. Fixed tests
event statuses

packages/events/server/models/event.js
1. Added event status 'DEFEATED'
2. Added status default value
3. Added status set function to control status transitions

packages/events/test/karma/unit/services/EventActions.spec.js
1. Added event actions karma tests

packages/events/test/mocha/event/status.js
1. Added event mocha event status transition tests
Merge branch 'ui-events'

Conflicts:
	packages/events/public/controllers/events.js
	packages/participants/public/controllers/participants.js
delete unused import