Replace jQuery UI with Bootstrap and layout with flexbox

- fix layout by using flex box
- split Player and Application out from core.js