moved core code to ngd3 module

separating bars, lines, and axis directives into their own modules