Refactor script into several files.
Added skeleton controller for autocomplete.
Added Makefile.
Make inspector work as a plugin.