Properly pass MEDIA_URL
Refactor things a bit
Fix gitignore
Improve layout code