Implemented device updates API. Now using mongoose-q which makes it nicer to chain mongoose queries.