Moving code into modules.

I've added a test module that has functions for making a test image and then adding noise.
The source detection code has been moved into its own submodule.
Test_Pipeline.ipynb should be a demo of the workflow.

Refactoring of portions of the sampler code are still WIP, so this is not ready to merge yet.