api: Add base url option
api, library: Add option for initial year
chart: Major refactoring. Not fully functional at the moment.