initial commit  for main program

needs lots of care and optimization
and making it run on multi devices without storing key in js
Merge branch 'master' of https://github.com/yoshco/idiot