api and models update

global update api & models
change api urls
add real test data in migrate script
small refactoring java code
small refactoring css & html