Fixed coding standard + basic styling

Now respects Nette coding standard - yea!

Fort styling see https://docs.google.com/file/d/0B5Exc7ZfsQ__bDlLR2VGLWNjdHc/edit?usp=drivesdk
No more overlays in long WHERE queires.
SELECT ... FROM ... now in one line.
No more $platform, due to useless

![nov test](https://f.cloud.github.com/assets/924196/830716/cda6c58c-f16d-11e2-8727-1c1c97414092.png)