core, added command line option --export-activities-as-sql

We are now a real application with a command line interface.
For now we accept --help, --version and an option
--export-activities-as-sql that creates an sql text file that can
be used to import the activities in an sql data base.

This is needed to get the activity list in our admin site.