Refactor

This is the preliminary refactor to find the target object, and to find the sash.

1) Finding of sash
2) Finding of target object

This pull request will allow us to touch less stuff when we make the changes for https://github.com/tute/merit/issues/65.