Run a trim on the title before setting the title attribute on the button

Fixes problems with strangely formatted title boxes.
Remove unnecessary input-block-level class.
Use .hidden instead .hide.
Adds 'form-control' class to the dropdown-toggle button
Added test case from #756 and generated dist files from a few PRs
Merge branch 'pull-requests'

Closes #771
Closes #770
Closes #758
Closes #756
Updated grunt configuration