core: Removed NumberStyles class

Removed the class NumberStyles from the compat module, also
removed the methods using it, all of which did not have any references

Change-Id: I0abe40050c1bafb0e25c11a917b5e722fea0d7e0
Signed-off-by: Tal Nisan <tnisan@redhat.com>
core: Removed the LongCompat class

Removed the LongCompat class and replaced all calls in Long.parse with
catching NumberFormatException, there are error handling anyway in each
of the references so it added no boilerplate code

Change-Id: If2b672f3406ce7b3316a5ff1b50379d92eedb062
Signed-off-by: Tal Nisan <tnisan@redhat.com>