add data- prefix for HTML validation

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>
remove log print

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>
add to do view and fix test

so that a controller is a working to do list sample
with some working tests

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>
update Gruntfile to make testing work

To differentiate application scripts from library scripts
the attribute:  data-appjs="true"
is added to all the <script> tags added to index.html so that
these scripts can be prefixed by temp/ so test can find them.

Unfortunately a nasty hack is involved to make this work:

Since the straightforward way of prefixing all test generated *-spec.js
with temp/ did not work using the templating systems .map function.

There seems to be an exception for the template:

  '<%= variable %>'

if the variable contains and array the above expansion results in an array.

However something like:

  '<%= ["abc", "def"] %>'

is transformed to: 'abc,def' i.e. the array is simply "joined" with ",".

Therefore the Gruntfile saves the map result into another variable
then outputs this i.e:

  'A-VERY-NASTY-HACK.*<% dom_munger.data.temp_appjs = _.map(dom_munger.data.appjs, function(e) { return "temp/" + e; }); %>'
  '<%= dom_munger.data.temp_appjs %>'

The first line has a silly string to prevent expansion to an empty string (an error)
so expands to a file glob that should never exist

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>