Moved dependancies and upgraded some of them.
Sorted the build.xml file for the refine module. Will compile against distrobuted version of refine.
Moved dependancies and upgraded some of them.
Improved sync code.