codenav implementation

Complete all features:
- implemented goto_file
- preferences now it's working
- minor fixes

Sorry for the mess of commits :S