Rearranged the source tree to be easier to distribute. Added autoconf and automatic dependency generation