Pipeline - don't create undefined pipes. AGJS-75

see https://issues.jboss.org/browse/AGJS-75

when doing this:

    var pipeline = AeroGear.Pipeline({ type: "Rest"});

an undefined pipe is actually created.  modified a bit of core and added some tests.  Haven't checked if this more that just Pipeline