Added api.js module.

This module is reponsible for connections to the EAD backend and fetching
data.
Added QUnit based tests.
Added LICENSE info.