Renames routes/root.rb to routes/ui.rb.
Re-organizes JavaScript directories.