Cleaned up some bugs and buffer management.
Integrated librocket into the build process