Attempt to make the build work in Travis.
Introduction of eunit tests.
Recovery of state by node agent, after vm restart.