Update omnicoin.php

Fixed a bunch of bugs and finished the plugin.

It now fully works as intended.