Changes storage method

Now writes to internal storage. Additionally tracked courses are now
organized via hash table. Results in less json queries.