Changed subscription a bit to limit duplicates, fixed os.cpp warnings

os.hpp and os.cpp also happened to get processed by the indent filter.
Attachment logic and extended texture generation.
RenderLayer bind logic, add clear function for attachments
Fixed some of the RenderLayer code, added GL error checks to almost everything.
Added stencil creation functions