fixed requirejs config for karma and client app
fix for centre's study add panel.
Better parameters for REST API.
WIP: client unit tests.