Major refactor

- Only keep internal time
- Nice clean data structures for global state
- Map of api calls for sabNzb