code gardenning
added behavior tests for toggle directive and reformatted the code.
only test on Firefox for now, as the unit tests fail on Chrome+Opera
replaced testacular with karma to run unit tests.