Several small fixes

1. Fixed a bug which caused an exception if env variable DYNO was set
2. Added refs for certificate generation and participant removal. Now a user is redirected to a page where she was before action
3. Fixed a bug when one person could be added as a participant twice