If you use an api key you wont have to set a user name, if you don't use a key you will have to login as admin.
Simple api key generator
If the keys dir does not exists create it.
Merge pull request #263 from EminezArtus/master

Web API fixes and add-ons