First version of new MainEntry.

Copied the class MainEntry to ab.agent package, so there should be no compatibility issues. The new MainEntry class should be easier to expand.
NaiveAgent now also extends the Agent class to simplify the agent instantiation.
The new MainEntry class supports an interactive mode (-i).