Refactor and clean up getController method on Route.

Split into newController and findController to make it easier to understand.
Clean up location file whitespace.