add files for tern and npm
start defining REST server
initial client construction
refine todo a bit