Reorganizing the code as part of #37. Certain things are broken right now, like signatures (throwing an error in the directive) and select, which are not loading.