add license, clean up some lint warnings, improve grunt "server" task