How do I create galleries like the ones at the OM demo?

These galleries are generated by Jetpack Plugin. Just enable the “Tiled Galleries” module and you are set to go! For more information on the Gallery module and how it works, you can have a look here:  http://jetpack.me/support/tiled-galleries/