[BISERVER-10656] Splitting reportviewer code to make it embeddable inside other JS apps.