add .gitignore and .editorconfig

Signed-off-by: Hank Wang <drapho@gmail.com>