Also process groups from credential
Integrated init JS into PHP code, use webservice JS & CSS for base scipts and style