Fixes #80. When uploading i'm getting an Unauthorized response.

The way /upload works, is by checking the meteor_login_token cookie and retrieving the user with it. The regex to filter the cookie was missing a semicolon ';' so it could find the token properly.
Fixes #81. Cannot edit device when Moderator.

Two changes were required to fix this issue. First one was to disable a check that made Admins the only ones enabled to edit devices (dumb mistake). The second one, we don't let devices without secret set to be edited or created. But older devices do not require secrets, I had to add a condition to check the device's version.