* Added glfw headers and testcases.
* Edited tests so they use emscripten_main_loop.
* Got triangle test about to work.
* Implemented misc functions.