Added user api access, changed story ids to be stored as long, fixed random stuff