Fixed music loop bug

When the stream reached it's end, the ending buffer is filled but not
completely. This causes a wierd laggy sound
You can now load 2D texture resources from script
Removed unnessesary opengl debug code.

Preparations for custom Lua memory allocator
Streamlined how the vertex buffer draws it's vertices.

Added safety-check for drawing the vertex buffer.
Added code which is used to prevent bad memory allocations.
Fixed a better typedef for script references.
file size exposed by the file system is size_t instead of uint32
Removed unused code. Added error messages for SceneNode script methods . Fixed invalid operator overload methods
Fixed so that the bounding box generated by the resource loader takes the midpoint into account.
Nodes are now removed correctly from the octree
Loading user interface without a valid style is now a legal action.

The correct filename is now visible in the log when using
luaM_printerror.
The AABB min- and max point are now regarded as properties.