Added travis ci file.
Added travis testing target.

Also, updated how ERL_LIBS get generated (now done dynamically).