Switched to buffer per attribute scheme.

Would be awesome if someone could test this before merging. I wasn't able to get the example compiling due to multiple unrelated issues.

Closes #44 

cc @bvssvni