Move remaining files in lib to internals directory

dictionary.rb and layout.rb needed to be tweaked since they statically
reference directories as sources for dictionaries and layouts.