Basic smart indent support.

After hitting enter at the end of a function line you will be indented
automatically.