Tidy up.

- fix codestyle
- simplify code with best practices
Add possibility to edit custom fields in tasks.

Also
- refactor code a bit
- add clearfix
- add newlines at EOF