	 c a s e   s t r i n g s . C o n t a i n s ( q ,   " c o n f i g " ) : 
 
 	 	 s . h a n d l e C o n f i g ( w ,   s e s s ) 
 
 
 
 	 c a s e   s t r i n g s . C o n t a i n s ( q ,   " d o c u m e n t s " )   | |   s t r i n g s . C o n t a i n s ( q ,   " d o c u m e n t " ) : 
 
 	 	 s . h a n d l e D o c u m e n t s ( w ,   r e q ,   s e s s ,   s t o r e ) 
 
 
 
 	 d e f a u l t : 
 
 	 	 w r i t e J S O N ( w ,   ` { " d a t a " : { " s y s t e m S t a t u s " : " O K " } } ` ) 
 
 	 } 
 
 } 
 
 
 
 / /           S e s s i o n   h e l p e r s                                                                                                                                                                                    
 
 
 
 f u n c   ( s   * S e r v e r )   s e s s i o n F r o m R e q u e s t ( r   * h t t p . R e q u e s t )   * a u t h . S e s s i o n   { 
 
 	 r a w   : =   r . H e a d e r . G e t ( " A u t h o r i z a t i o n " ) 
 
 