Refactor into provider/resource/template directories, and add resource tests
Add resource tests for dns and web