Repository parts are splitted into separate files.

Fixed bug with wrong handling over formatter factory.
Task shuffling.
Minor styling.
Cleaning up comments.
Api task added.