Fixes FlatUI dependencies, removes Ruby Gemfile dependency, and separates out index JavaScript.