Added REST framework and serializer for device view