refactor into directives

 - build form directive
 - deploy form directive
 - add console log window