Added cookie middleware, reorganized

Added the cookie response middleware and relocated
the knockout number formatting binding code. Also,
corrected a couple of typos.