videur boiler plate
listed all endpoints
using regexpes for the tokens
added a test
using config values for the token size
removed one extra line
added a test
style fixes
use publicServerAddress
use publicServerAddress from teh conf
using template-like replacement
first rate limiting rule
60/60
Bug 1080491 - send "answered-elsewhere" state.

In order to implement that, each session stores if it is connected or not, and
discards the "connection" messages sent trough the pubsub in case they are.

All the other ones (the ones which aren't connected) will receive an update
with "terminated" and a reason of "answered-elsewhere", as the spec specifies.
Use a simpler if statement
Bug 1086698 - [Loop][Server] We should store the user ID if no issuer is provided for POST /call-url. r=alexis
Bug 1080491 — Fix "answered-elsewhere" impl.

Previous implementation of this was actually only sending the
"answered-elsewhere" when the call was "connected", and not when it was
transitioning from "alerting" to "accepted".

In order to make this work, I had to also to count the number of connected
devices for each session type (caller, callee), because the clients are
expecting to get their socket connection closed in case there is only one
device on the other side of the call if it closes the connection.
Fix a few uncatched errors