Fix a panel overflow issue, reorganize template code into common mixins and layout, add a new theme called flatly and bump version to 1.3.0