Started to turn marble.js into a generic op lib

Also moved files.