Add checking of identifier before direct inserting to URL.

This provides initial identifier validity and allows
avoiding quote() of all URL component.
Add handling of package ACLs.
Add handling of image ACLs.
Merge pull request #4 from netch80/master

Add checking of identifier before direct inserting to URL.