FLUID-5167: dependencies handling is more rohbust

Now the dependencies section in a json dependency file can be specified as a string, array, or be left off completely.

http://issues.fluidproject.org/browse/FLUID-5167