Optimus G support and xb squash

Add Linaro and  optimizations and other commits from my xb branch