move main js code in main.js
make jshint compliant
add service layer for missing services
add global error message UI
render field cells
render combat units
style unit action 'attack;
add unit action 'move'
add unit action 'defend'