There are many libraries that will drive these LEDs. You can use Adafruit's NeoPixel library or the FastLED library. They both come with example code.
As for driving them with batteries, you can't drive 150 LEDs with just a few batteries. Make life easy on yourself as you are learning. Start with a 5VDC supply that you plug into the wall.