added api to get directories of a single or all images.
added authentication.
Signed-off-by:Matthew Scaperoth <mscapero@gwu.edu>