add 3rdparty leaflet
add gitignore
part some of the old code to new app framework