Added linear equation solver

Also removed phonegap cruft