Bootstrap 3 support

I have made some fixes to make this support bootstrap 3 (Specifically 3.1.1). It will no longer work with bootstrap 2. Please review.