Make the "long form" for images (newimageid.php3) work again.
Make the "long form" for images (newimageid.php3) work again.

A couple queries were trivially broken, and the code to grab
project/group info was wrong.

nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome