improve JavaScript

* cleanup Bower dependencies
  We don't use dataTable anymore.

* move static/components to static/lib
  I think this name is more clearly for external sources.

* remove JS from templates
  JS in templates is a bad idea for many reasons e.g. page-loadtime, maintenance

* I took my best to DRY the code ;)

* searchTable is more unobtrusive-JS
Merge pull request #43 from pgolm/feature/improve_js

improve JavaScript