Squashed commit of the following:

commit 670589a4763db9adc3877a58da92cbfec5d92f5d
Author: Patrik Boström <patbos@patbos.com>
Date:   Wed Apr 2 21:44:24 2014 +0200

    Added more tests

commit 46dfe91e84f1bb55dc415e0ab2d67d7def4ca24d
Author: Patrik Boström <patbos@patbos.com>
Date:   Wed Apr 2 19:50:45 2014 +0200

    Renamed constant and added some more tests for branch coverage

commit 1220a7bfd4f5cb5975baa0cb6044f845eee27857
Author: Patrik Boström <patbos@patbos.com>
Date:   Wed Apr 2 18:01:07 2014 +0200

    Added directory classes to ignore

commit 72693d8c6cebe8a949b8c27e9031c08a7a1c80ca
Merge: 6fd46a7 00784fc
Author: Patrik Boström <patbos@patbos.com>
Date:   Wed Apr 2 17:58:33 2014 +0200

    Merge pull request #57 from Diabol/JENKINS-22423-same-stage-names

    JENKINS-22423 Problem with same stages names

commit 00784fc5f58928f587d04dc97c79aa2cbe56c6f6
Author: Patrik Boström <patbos@patbos.com>
Date:   Mon Mar 31 21:03:29 2014 +0200

    JENKINS-22423 Added an unique id for every stage and added downstreamStageIds to connect them in view