Be able to run tests (and core) in Standalone (non-OSGi)

Hi, I've started some work re. being able to run tests (and core) in Standalone (non-OSGi)... not yet complete. 

Is this something you'd be interested in? Wanna finish it? ;-) Else maybe I will... some other night.

PS: The 2 files which appear to be completely changes are because of Git line ending crap. If you reject, I could try to clean that some time if you like. (Not sure how much time I'll have, thought I'd send you this anyways.)