Refactored the way controllers and datasources are instantiated. Also closes #19.
Added config.js. Also closes #6 and #22.
Added some console messages for easier diagnostics.