Refactored server code. Fixed a bug in core/math
Added static asset server to server/main