Fixed up bugs and added agl_shared_library_extension wrt. shared libraries.
Added backends and contexts.