sstarted work on api, did some refactoring, and added drm removal for epubs