Create common createElementSortRadio() and use it
User getUserID()
Create common createElementPendingRadio(boolean) and use it
Create createElementCatSelect(boolean) and use it, fixed bug

Bug was with saving/reading default preferences
Fix wrong default
Create createElementPaymentSelect(boolean) and use it
Create createElementOrderSelect() and use it
Add comment
Move connect logic into common.php
Fix userIds