turn off temp files for scala code completion

temp files, although deleted, are still referenced by the scala
presentation compiler causing errors that the same method/type is
already defined.
support scala import feature
update new scala import support

- some code style changes
- move insertion of the import to the server side
- add unit tests

refs #288