Fix Lint errors and warnings

I couldn't solve all issues, the situation right now is:
![image](https://cloud.githubusercontent.com/assets/3704363/3575724/ceec56f4-0b8a-11e4-9f5f-7deb47865e05.png)

Fixes #14