some cleanups and formats using netbeans
upgrade js libs
put cake2 core into project