setup debugging and production stuff
remove debug print function
remove static from urls
add static url if not debug