Fullscreen/bh — pull request #62 by claudiob (2014-11-08 00:37:00+00:00)
Title: Pass `nav` extra params to the <nav>

Before this commit, the `nav` helper ignored unknown options.
For instance the code:

```rhtml
<%= nav class: :important, id: 'my-nav', data: {value: 1} do %>
<%= link_to 'Home', '/' %>
<% end %>
```

would simply generate the following HTML

```html

Home

```

ignoring the `:data` and `:id` parameter.
After this commit, the result is:

```html

Home

```

which should partially mitigate #39.

---

This commit also reduces public API methods from NavHelper

Before this PR, including `bh` in an app would include more methods
than necessary for navs: methods like `nav_options that should only be
accessed privately.

This PR extracts those private methods into a new Nav class
that includes all the business logic to render elements and edit
attributes (e.g., attach classes), leaving the helper cleaner.