Rearranging and modularizing

added a configurartion library, began organizing mite.js and stubbed a
few functions.