First working version of the code.

The generated galaxy seems to be in equilibrium. The code
is somewhat messy and the bulge has not been added yet, but
both of these will have been fixed in the next commit.