Added code quality warning
separated out clientside code from common
Added license
Separation of concerns
Code cleanup