Refactoring, new entity Url, added more commands, fixed bugs

Looks like a dangerous.