Add axis directive

Started refactoring the the chart directive and adding unit tests.

I am only testing if the svg element attributes are correctly set... It doesn't test if the browser is supporting them.